package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2023/8/9 0009
 **/
@Data
@ApiModel("用户分类对象")
public class UserTypeVo {
    @ApiModelProperty(value = "分类ID，新增不必传，修改必传")
    private Long id;

    @NotBlank(message = "分类名称不能为空")
    @Length(max = 20, message = "分类名称限制20个字符以内")
    @ApiModelProperty(value = "分类名称", required = true)
    private String name;

    @NotNull(message = "分类状态不能为空")
    @ApiModelProperty(value = "分类状态：false-启用，true-禁用", required = true, example = "false")
    private Boolean status;
}
